//
//  RecommendCompanyCell.m
//  u76ho
//
//  Created by m-air-01 on 15/12/30.
//  Copyright © 2015年 LV. All rights reserved.
//

#import "BottomCompanyCell.h"

@implementation BottomCompanyCell

- (void)awakeFromNib {
    _headerImg.layer.masksToBounds = YES;
    _headerImg.layer.cornerRadius = 54/2;
    // Initialization code
}
-(void)setIsHiddenZP:(NSString *)isHiddenZP
{
    _isHiddenZP = isHiddenZP;
    _ZP.hidden = YES;
}
-(void)setHomePagecommendModel:(commendModel *)HomePagecommendModel
{
     
    [_headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",U76HOURL,HomePagecommendModel.headpic]] placeholderImage:[UIImage imageNamed:@"发现－默认logo.png"]];
    
    _firstLab.text = HomePagecommendModel.username;
    _secondLab.text = [NSString stringWithFormat:@"%@ | %@ | %@",HomePagecommendModel.Property,HomePagecommendModel.industry,HomePagecommendModel.Person];
    
   // NSLog(@"%@",HomePagecommendModel.Headpic);


}

-(void)setScompaymodel:(SCompanyModel *)scompaymodel
{
    
    
    _scompaymodel = scompaymodel;
    [_headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",U76HOURL,scompaymodel.ico]] placeholderImage:[UIImage imageNamed:@"发现－默认logo.png"]];
//    _firstLab.text = scompaymodel.companyname;
//    _secondLab.text = [NSString stringWithFormat:@"%@ | %@ | %@",scompaymodel.property,scompaymodel.industry,scompaymodel.person];
//    if (scompaymodel.num && ![scompaymodel.num isEqualToString:@"0"]) {
//        _ZP.hidden = NO;
//    }
//    else
//    {
//        _ZP.hidden = YES;
//    }
}

-(void)setPositionlistmodel:(PositionDeliverListModel *)positionlistmodel
{
    _positionlistmodel = positionlistmodel;
    [_headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",U76HOURL,positionlistmodel.ico]] placeholderImage:[UIImage imageNamed:@"发现－默认logo.png"]];
    _firstLab.text = positionlistmodel.companyname;
    _secondLab.text = [NSString stringWithFormat:@"%@ | %@ | %@",positionlistmodel.industry,positionlistmodel.fince,positionlistmodel.person];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
